package io;

import java.io.FileOutputStream;
import java.io.PrintWriter;

public class WriteStringDemo2 {
    public static void main(String[] args) throws Exception{
        FileOutputStream fos = new FileOutputStream("demo.txt");
        PrintWriter pw = new PrintWriter(fos);
        pw.println("馕言文");
        pw.println("Apple U");
        pw.close();
        System.out.println("写入完毕");
    }
}
